export default {
    components: {},
    props: [],
    data() {
        return {
            form: {
                field101: undefined,
                field103: undefined,
                field104: undefined,
            },
        }
    },
    computed: {},
    watch: {},
    created() {

    },
    mounted() {},
    methods: {
        save() {
            console.log(this.form);
            this.form.dynFormId = this.$route.query.id;
            this.$axios.post('/dyn/form/saveData', this.form).then((r) => {
                this.$info(r.message);
                this.$refs.dialog.hide();
            }).finally(() => {
                this.query();
            });
        },
        onClose() {
            this.$refs['quasarForm'].resetFields()
        },
        close() {
            this.$emit('update:visible', false)
        },
        handelConfirm() {
            this.$refs['quasarForm'].validate(valid => {
                if (!valid) return
                this.close()
            })
        },
    }
}
